package cn.stylefeng.guns.modular.comm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 轮播图
 * </p>
 *
 * @author 
 * @since 2019-11-18
 */
@TableName("comm_swiper")
public class Swiper implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 路径
     */
    @TableField("file_id")
    private String fileId;
    @TableField("img_path")
    private String imgPath;
    @TableField("news_id")
    private String newsId;

    /**
     * 模块 01 首页
     */
    @TableField("modular")
    private String modular;

    @TableField("idx")
    private int idx;

    /**
     * 小程序ID
     */
    @TableField("app_id")
    private String appId;

    /**
     * 开关 0 ：开 1：关
     */
    @TableField("open_flag")
    private String openFlag;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getNewsId() {
        return newsId;
    }

    public void setNewsId(String newsId) {
        this.newsId = newsId;
    }

    public String getModular() {
        return modular;
    }

    public void setModular(String modular) {
        this.modular = modular;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getOpenFlag() {
        return openFlag;
    }

    public void setOpenFlag(String openFlag) {
        this.openFlag = openFlag;
    }

    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    @Override
    public String toString() {
        return "Swiper{" +
        "id=" + id +
        ", fileId=" + fileId +
        ", imgPath=" + imgPath +
        ", newsId=" + newsId +
        ", modular=" + modular +
        ", idx=" + idx +
        ", appId=" + appId +
        ", openFlag=" + openFlag +
        "}";
    }
}
